package com.sl.au.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/***
 * 签订前要点审批会签节点信息
 * @author chuck
 *
 */
@Entity
@Table(name="tbExdeBeforeContractCounterSign")
public class ExdeBeforeContractCounterSign extends Root{
	
	/***
	 * 签订前要点审批ID
	 */
	@ManyToOne
	@JoinColumn(name = "bContractId") // 加入一列作为外键
	private ExdeBeforeContract exdeBeforeContract;
	
	/***
	 * 审批说明
	 */
	private String cAuditMemo;
	
	/***
	 * 审批状态（0:未审批,1:已审批）
	 */
	private Integer cAuditState;
	
	/***
	 * 审批通过时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date dAuditSubmitDate;

	/***
	 * 审批人ID
	 */
	
	@ManyToOne
	@JoinColumn(name = "cUserId") // 加入一列作为外键
	private User user;
	
	/***
	 * 审批人名称
	 */
	private String cUserName;
	
	public Date getdAuditSubmitDate() {
		return dAuditSubmitDate;
	}

	public void setdAuditSubmitDate(Date dAuditSubmitDate) {
		this.dAuditSubmitDate = dAuditSubmitDate;
	}

	public Integer getcAuditState() {
		return cAuditState;
	}

	public void setcAuditState(Integer cAuditState) {
		this.cAuditState = cAuditState;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public ExdeBeforeContract getExdeBeforeContract() {
		return exdeBeforeContract;
	}

	public void setExdeBeforeContract(ExdeBeforeContract exdeBeforeContract) {
		this.exdeBeforeContract = exdeBeforeContract;
	}

	/***
	 * 审批时间
	 */
	private Date dAuditDate;

	public String getcAuditMemo() {
		return cAuditMemo;
	}

	public void setcAuditMemo(String cAuditMemo) {
		this.cAuditMemo = cAuditMemo;
	}

	public String getcUserName() {
		return cUserName;
	}

	public void setcUserName(String cUserName) {
		this.cUserName = cUserName;
	}

	public Date getdAuditDate() {
		return dAuditDate;
	}

	public void setdAuditDate(Date dAuditDate) {
		this.dAuditDate = dAuditDate;
	}
}
